/* Font loads here because the site editor drops <link> tags from the page */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  /* Size unit for the whole page. It is a fixed 1px: it used to grow and shrink with the screen width
     (100vw / 1920), which made the page look different on every laptop while the site header stayed the same. */
  --pf-u: 1px;
  --pf-ticker-h: calc(52 * var(--pf-u));
  /* made-in-bd.com brand colours */
  --red: #d32f2f;
  --red-dark: #b71c1c;
  --yellow: #ffca28;
  --yellow-hover: #ffb300;
  --night: #15171c;
  --night-2: #1f2229;
  --ink: #212529;
  --ink-soft: #5b6475;
  --line: #e3e6ec;
  --page-bg: #f4f6f9;
  --display: "Space Grotesk", "Segoe UI", Tahoma, sans-serif;
  --radius: calc(18 * var(--pf-u));
  --max: calc(1140 * var(--pf-u));
}
/* Resets stay inside the portfolio so the site's header and footer are untouched */
.pf-page, .drawer, .preview { font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; color: var(--ink); line-height: 1.6; }
.pf-page *, .drawer *, .preview * { box-sizing: border-box; margin: 0; padding: 0; }
:where(.pf-page, .drawer, .preview) img { max-width: 100%; display: block; }
.pf-page a, .drawer a { color: inherit; text-decoration: none; }
.pf-page button, .drawer button { font: inherit; font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
body.locked { overflow: hidden; }
/* Full-width page like the rest of the site: drop the site's boxed content area on this page only
   (same approach as the About Us page) */
.cms-content-wrapper:has(.pf-page) { max-width: none; width: 100%; padding: 0; min-height: 0; }
.cms-content-wrapper:has(.pf-page) main { padding-bottom: 0 !important; }
.cms-page-content:has(> .pf-page) > p { display: none; }
/* Section backgrounds run edge to edge. --pf-gutter is the side padding of the site header (.mib-wrap:
   max 1440px wide with clamp(16px, 4vw, 40px) padding), so the content starts under the logo and ends
   under the Contact Us button on every screen size. */
.pf-page { --pf-gutter: calc(max(0px, (100% - 1440px) / 2) + clamp(16px, 4vw, 40px)); width: 100%; max-width: none; margin: 0; padding: 0; background: var(--page-bg); }
/* Browsers without :has() (e.g. Firefox before v121, still common on older Windows PCs) skip the :has() rules
   above and show the page boxed with white margins. This file is only loaded on the Portfolio page, so for them
   the same reset is applied without :has(). .container.cms-content-wrapper outranks Bootstrap's .container widths. */
@supports not selector(:has(*)) {
  .container.cms-content-wrapper { max-width: none; width: 100%; padding: 0; min-height: 0; }
  .cms-content-wrapper main { padding-bottom: 0 !important; }
  .cms-page-content > p { display: none; }
}
.eyebrow { display: inline-flex; align-items: center; gap: calc(10 * var(--pf-u)); font-size: max(12px, calc(12.5 * var(--pf-u))); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: calc(14 * var(--pf-u)); }
.eyebrow::before { content: ""; width: calc(24 * var(--pf-u)); height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; }
em { font-style: normal; }

.pf-btn { display: inline-flex; align-items: center; gap: calc(8 * var(--pf-u)); padding: calc(13 * var(--pf-u)) calc(24 * var(--pf-u)); border-radius: calc(99 * var(--pf-u)); font-weight: 600; font-size: max(12px, calc(15 * var(--pf-u))); transition: transform .2s, background .2s, border-color .2s; }
.pf-btn:hover { transform: translateY(-2px); }
.pf-page .pf-btn-yellow { background: var(--yellow); color: var(--night); }
.pf-page .pf-btn-yellow:hover { background: var(--yellow-hover); }
.pf-page .pf-btn-line { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.pf-btn-line:hover { border-color: #fff; }
.pf-dl::before { content: "\2193"; font-size: max(12px, calc(17 * var(--pf-u))); line-height: 1; }

/* Hero: dark panel with a tilted screenshot stack */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: calc(40 * var(--pf-u)); align-items: center; background: var(--night); color: #fff; border-radius: var(--radius); padding: calc(64 * var(--pf-u)) calc(56 * var(--pf-u)); isolation: isolate; }
.hero { border-radius: 0; padding: calc(72 * var(--pf-u)) var(--pf-gutter) calc(80 * var(--pf-u)); }
/* Header + hero + ticker always fill the first screen, whatever the window height.
   88px is the site header's height on desktop; the ticker has a fixed scaled height below. */
.hero { min-height: calc(100vh - 88px - var(--pf-ticker-h)); min-height: calc(100svh - 88px - var(--pf-ticker-h)); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: calc(44 * var(--pf-u)) calc(44 * var(--pf-u)); mask-image: linear-gradient(110deg, #000 30%, transparent 85%); }
.hero::after { content: ""; position: absolute; width: calc(520 * var(--pf-u)); height: calc(520 * var(--pf-u)); right: -140px; top: -120px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(211,47,47,.55), transparent 65%); }
/* Page label above the title, styled like the Services page label ("• OUR SERVICES").
   The breadcrumb's Home link is hidden, so it reads "• PORTFOLIO" without editing the page content. */
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; letter-spacing: 1.7px; text-transform: uppercase; line-height: 1.6; color: var(--yellow); margin-bottom: calc(20 * var(--pf-u)); }
.crumbs::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pf-page .crumbs a { display: none; }
/* Same title size as the site's other pages (Contact Us uses this exact rule) */
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; font-weight: 700; margin-bottom: calc(20 * var(--pf-u)); }
.hero h1 em, .cta h2 em { color: var(--night); background: var(--yellow); padding: 0 .18em; border-radius: calc(8 * var(--pf-u)); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p { color: rgba(255,255,255,.72); font-size: max(12px, calc(17 * var(--pf-u))); max-width: calc(480 * var(--pf-u)); margin-bottom: calc(28 * var(--pf-u)); }
.hero-actions { display: flex; gap: calc(12 * var(--pf-u)); flex-wrap: wrap; }
.hero-stats { display: flex; gap: calc(36 * var(--pf-u)); margin-top: calc(40 * var(--pf-u)); padding-top: calc(26 * var(--pf-u)); border-top: 1px solid rgba(255,255,255,.12); }
.hstat-num { display: block; font-family: var(--display); font-size: calc(30 * var(--pf-u)); font-weight: 700; line-height: 1; }
.hstat-label { display: block; font-size: max(12px, calc(13 * var(--pf-u))); color: rgba(255,255,255,.55); margin-top: calc(6 * var(--pf-u)); }
.hero-art { position: relative; height: calc(380 * var(--pf-u)); }
.shot { position: absolute; width: 74%; border-radius: calc(12 * var(--pf-u)); background: #fff; box-shadow: 0 calc(30 * var(--pf-u)) calc(60 * var(--pf-u)) rgba(0,0,0,.45); border: calc(4 * var(--pf-u)) solid #fff; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.s1 { top: 0; right: 0; transform: rotate(6deg); }
.s2 { top: calc(90 * var(--pf-u)); left: 0; transform: rotate(-5deg); z-index: 2; }
.s3 { bottom: 0; right: 6%; width: 52%; transform: rotate(3deg); z-index: 3; }
/* Until a picture is uploaded on the site, an image tag has no src: hide it instead of drawing an empty frame */
.pf-page img:not([src]), .pf-page img[src=""] { visibility: hidden; }
.hero:hover .s1 { transform: rotate(8deg) translate(calc(10 * var(--pf-u)), -8px); }
.hero:hover .s2 { transform: rotate(-7deg) translate(-8px, -4px); }
.hero:hover .s3 { transform: rotate(5deg) translate(calc(6 * var(--pf-u)), calc(8 * var(--pf-u))); }

/* Ticker */
.ticker { overflow: hidden; background: var(--red); color: #fff; margin: 0; padding: 0; height: var(--pf-ticker-h); display: flex; align-items: center; }
/* flex-shrink: 0 stops the strip being squeezed to the screen width, and nowrap keeps each item on one line */
.ticker-track { display: flex; width: max-content; flex-shrink: 0; animation: tick 40s linear infinite; }
.ticker .tk { font-family: var(--display); font-weight: 600; font-size: max(12px, calc(15 * var(--pf-u))); letter-spacing: .02em; white-space: nowrap; flex-shrink: 0; padding: 0 calc(22 * var(--pf-u)); display: flex; align-items: center; gap: calc(44 * var(--pf-u)); }
.ticker .tk::after { content: "\2726"; color: var(--yellow); font-size: max(12px, calc(12 * var(--pf-u))); margin-right: -22px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Project index */
.work { padding: calc(88 * var(--pf-u)) var(--pf-gutter); }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: calc(24 * var(--pf-u)); flex-wrap: wrap; margin-bottom: calc(30 * var(--pf-u)); }
.work-head h2 { font-size: clamp(calc(28 * var(--pf-u)), 3.6vw, calc(42 * var(--pf-u))); line-height: 1.1; font-weight: 700; }
.work-head p { color: var(--ink-soft); max-width: calc(300 * var(--pf-u)); }
.tabs { display: flex; flex-wrap: wrap; gap: calc(6 * var(--pf-u)); padding: calc(6 * var(--pf-u)); background: #fff; border: 1px solid var(--line); border-radius: calc(99 * var(--pf-u)); width: fit-content; margin-bottom: calc(28 * var(--pf-u)); }
.tabs button { padding: calc(9 * var(--pf-u)) calc(18 * var(--pf-u)); border-radius: calc(99 * var(--pf-u)); font-size: max(12px, calc(14 * var(--pf-u))); font-weight: 500; color: var(--ink-soft); transition: background .2s, color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: var(--night); color: #fff; }
.tabs .count { font-size: max(12px, calc(10.5 * var(--pf-u))); opacity: .6; margin-left: calc(4 * var(--pf-u)); vertical-align: super; }

.index { list-style: none; border-top: 1px solid var(--ink); }
.project { border-bottom: 1px solid var(--line); }
.project.hide { display: none; }
.row-btn { width: 100%; display: grid; grid-template-columns: calc(56 * var(--pf-u)) minmax(0, 1fr) calc(180 * var(--pf-u)) calc(170 * var(--pf-u)) calc(40 * var(--pf-u)); align-items: center; gap: calc(20 * var(--pf-u)); padding: calc(26 * var(--pf-u)) calc(8 * var(--pf-u)); position: relative; transition: padding .3s; }
.row-btn::before { content: ""; position: absolute; inset: 0; background: #fff; border-radius: calc(12 * var(--pf-u)); opacity: 0; transition: opacity .3s; z-index: -1; }
.row-btn:hover, .row-btn:focus-visible { padding-left: calc(22 * var(--pf-u)); padding-right: calc(22 * var(--pf-u)); outline: 0; }
.row-btn:hover::before, .row-btn:focus-visible::before { opacity: 1; }
.num { font-family: var(--display); font-size: max(12px, calc(14 * var(--pf-u))); font-weight: 600; color: var(--red); }
.row-thumb { display: none; }
.row-title { display: block; font-family: var(--display); font-size: clamp(calc(19 * var(--pf-u)), 2vw, calc(24 * var(--pf-u))); font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.row-sum { display: block; color: var(--ink-soft); font-size: max(12px, calc(14.5 * var(--pf-u))); margin-top: calc(4 * var(--pf-u)); max-width: calc(520 * var(--pf-u)); }
.row-cat { font-size: max(12px, calc(13.5 * var(--pf-u))); font-weight: 500; }
.row-tags { font-size: max(12px, calc(13 * var(--pf-u))); color: var(--ink-soft); }
/* Arrow drawn in CSS, since the site editor strips <svg> */
.row-btn::after { content: "\2197"; width: calc(40 * var(--pf-u)); height: calc(40 * var(--pf-u)); display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: max(12px, calc(17 * var(--pf-u))); transition: all .3s; }
.row-btn:hover::after { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(45deg); }

/* Floating hover preview (mouse only) */
.preview { position: fixed; left: 0; top: 0; width: calc(320 * var(--pf-u)); pointer-events: none; z-index: 50; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .25s, transform .25s; }
.preview.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.preview img { width: 100%; border-radius: calc(12 * var(--pf-u)); border: calc(4 * var(--pf-u)) solid #fff; box-shadow: 0 calc(24 * var(--pf-u)) calc(50 * var(--pf-u)) rgba(21,23,28,.3); background: #fff; }

/* CTA */
.cta { margin-top: 0; background: var(--night); color: #fff; border-radius: 0; padding: calc(88 * var(--pf-u)) var(--pf-gutter); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; width: calc(600 * var(--pf-u)); height: calc(600 * var(--pf-u)); left: 50%; bottom: -420px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(211,47,47,.6), transparent 65%); z-index: -1; }
.cta .eyebrow { color: var(--yellow); }
.cta h2 { font-size: clamp(calc(30 * var(--pf-u)), 4.4vw, calc(50 * var(--pf-u))); line-height: 1.1; font-weight: 700; margin-bottom: calc(14 * var(--pf-u)); }
.cta p { color: rgba(255,255,255,.7); margin-bottom: calc(28 * var(--pf-u)); }
.cta .hero-actions { justify-content: center; }

/* Side drawer with project details */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(21,23,28,.55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(calc(560 * var(--pf-u)), 100%); background: #fff; z-index: 100; overflow-y: auto; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); visibility: hidden; }
.drawer.open { transform: none; visibility: visible; }
.drawer .drawer-close { position: sticky; top: calc(14 * var(--pf-u)); margin: calc(14 * var(--pf-u)) calc(14 * var(--pf-u)) -54px auto; display: grid; place-items: center; width: calc(40 * var(--pf-u)); height: calc(40 * var(--pf-u)); border-radius: 50%; background: var(--night); color: #fff; font-size: calc(24 * var(--pf-u)); line-height: 1; z-index: 1; }
.drawer .drawer-close:hover { background: var(--red); }
.drawer-img { width: 100%; aspect-ratio: 716 / 473; object-fit: cover; background: var(--page-bg); }
.drawer-body { padding: calc(28 * var(--pf-u)) calc(32 * var(--pf-u)) calc(40 * var(--pf-u)); }
.drawer-meta { font-size: max(12px, calc(13 * var(--pf-u))); color: var(--red); font-weight: 600; margin-bottom: calc(8 * var(--pf-u)); }
.drawer h3 { font-size: calc(28 * var(--pf-u)); line-height: 1.15; font-weight: 700; margin-bottom: calc(14 * var(--pf-u)); }
.drawer-content p { color: var(--ink-soft); font-size: max(12px, calc(15.5 * var(--pf-u))); }
.drawer-content h4 { font-family: var(--display); font-size: max(12px, calc(16 * var(--pf-u))); margin: calc(26 * var(--pf-u)) 0 calc(12 * var(--pf-u)); }
.drawer-content ul { list-style: none; display: flex; flex-wrap: wrap; gap: calc(8 * var(--pf-u)); }
.drawer-content li { font-size: max(12px, calc(13.5 * var(--pf-u))); padding: calc(6 * var(--pf-u)) calc(12 * var(--pf-u)); border-radius: calc(99 * var(--pf-u)); background: var(--page-bg); border: 1px solid var(--line); }
.drawer .links { display: flex; flex-wrap: wrap; gap: calc(10 * var(--pf-u)); margin-top: calc(28 * var(--pf-u)); }
.drawer .links a { padding: calc(10 * var(--pf-u)) calc(20 * var(--pf-u)); border-radius: calc(99 * var(--pf-u)); font-size: max(12px, calc(14.5 * var(--pf-u))); font-weight: 600; background: var(--night); color: #fff; transition: background .2s; }
.drawer .links a:hover { background: var(--red); }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(calc(20 * var(--pf-u))); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .shot, .drawer { transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero { grid-template-columns: 1fr; padding: calc(56 * var(--pf-u)) var(--pf-gutter); }
  .hero-art { height: calc(320 * var(--pf-u)); max-width: calc(520 * var(--pf-u)); width: 100%; margin: 0 auto; }
  .row-btn { grid-template-columns: calc(44 * var(--pf-u)) minmax(0, 1fr) calc(150 * var(--pf-u)) calc(40 * var(--pf-u)); }
  .row-tags { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: calc(40 * var(--pf-u)) var(--pf-gutter); gap: calc(28 * var(--pf-u)); }
  .hero-art { height: calc(240 * var(--pf-u)); }
  .hero-stats { gap: calc(24 * var(--pf-u)); }
  .work { padding: calc(64 * var(--pf-u)) var(--pf-gutter) calc(48 * var(--pf-u)); }
  .tabs { border-radius: calc(16 * var(--pf-u)); width: auto; }
  .row-btn { grid-template-columns: calc(96 * var(--pf-u)) minmax(0, 1fr); gap: calc(14 * var(--pf-u)); padding: calc(18 * var(--pf-u)) 0; }
  .row-btn:hover, .row-btn:focus-visible { padding-left: 0; padding-right: 0; }
  .row-btn::before { display: none; }
  .num, .row-cat, .row-btn::after { display: none; }
  .row-thumb { display: block; width: calc(96 * var(--pf-u)); aspect-ratio: 716 / 473; object-fit: cover; border-radius: calc(8 * var(--pf-u)); background: #fff; border: 1px solid var(--line); }
  .row-sum { font-size: max(12px, calc(13.5 * var(--pf-u))); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .cta { padding: calc(56 * var(--pf-u)) var(--pf-gutter); }
  .drawer-body { padding: calc(24 * var(--pf-u)) calc(20 * var(--pf-u)) calc(32 * var(--pf-u)); }
}
